package com.bbs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;

import java.time.LocalDateTime;

@Data
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)
    @Getter
    private Long id;
    
    private String username;
    
    private String password;  // 存储加密后的密码
    
    private String email;

    private String phone;
    
    private String avatar;  // 用户头像路径
    
    private LocalDateTime createdAt;
    
    private LocalDateTime lastLoginAt;  // 用于统计活跃用户

    
} 